package com.hudsonmq.spring.utils;


import com.hudson.core.util.SnowflakeIdGenerator;

public class SnowflakeIdGeneratorUtil {

    private static final SnowflakeIdGenerator GENERATOR = new SnowflakeIdGenerator(1);

    public static long getMessageId(){
        return GENERATOR.nextId();
    }
}
